package com.chenyun.common.constants;

/**
 * SysConstants：
 * Description:
 *
 * @author: Lonni
 * @date: 2022/6/17 0017 15:24
 */
public class SysConstants {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * RMI 远程方法调用
     */
    public static final String LOOKUP_RMI = "rmi://";

    /**
     * LDAP 远程方法调用
     */
    public static final String LOOKUP_LDAP = "ldap://";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";
    /**
     * 当前记录起始索引
     */
    public static final String PAGE_INDEX = "pageIndex";
    /**
     * 当前记录起始索引
     */
    public static final String PAGE_NUM = "pageNum";

    /**
     * 每页显示记录数
     */
    public static final String PAGE_SIZE = "pageSize";

    /**
     * 排序列
     */
    public static final String ORDER_BY_COLUMN = "orderByColumn";

    /**
     * 排序的方向 "desc" 或者 "asc".
     */
    public static final String IS_ASC = "isAsc";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 验证码有效期（分钟）
     */
    public static final long CAPTCHA_EXPIRATION = 2;


    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";


    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * 定时任务违规的字符
     */
    public static final String[] JOB_ERROR_STR = {"java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
            "org.springframework.jndi"};


    /**
     * 本地文件存储的cofig表key
     */
    public static final String LOCAL_FILE_STORE_KEY = "localFileStore";
    /**
     * 云存储cofig表key
     */
    public static final String YUN_FILE_STORE_KEY = "fileStore";

    /**
     * 短信发送客户端key
     */
    public static final String YUN_SMS_STORE_KEY = "smsClient";


    /**
     * 默认的租户id
     */
    public static final Integer DEFAULT_TENANT_ID = 1;

    /**
     * 平台端超级管理员的用户名
     */
    public static final String ADMIN_USER = "lonni";
    /**
     * 平台端超级管理员的密码
     */
    public static final String ADMIN_USER_PWD = "123123";

    /**
     * 平台管理员角色名称
     */
    public static final String PLATFORM_ADMIN_ROLE = "admin";


    /**
     * 默认租户管理员角色名称
     */
    public static final String TENANT_DEFAULT_ROLE = "tenant_admin";


    /**
     * 默认租户管理员角色名称
     */
    public static final String TENANT_DEFAULT_ROLE_NAME = "租户管理员(默认)";













    /**
     * 商户端超级管理员角色key
     */
    public static final String MERCHANT_ADMIN_ROLE = "merchantsuperadmin";
    /**
     * 商户端超级管理员角色名称
     */
    public static final String MERCHANT_ADMIN_ROLE_NAME = "商户超级管理员";


    /**
     * feign请求标识
     */
    public static final String T_REQUEST_ID = "is_feign_request";

}
